package com.ld;

import com.ld.service.RedisMqService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class LdRedisDubboApplication {

    @Autowired
    private RedisMqService redisMqService;
    public static void main(String[] args) {
        SpringApplication.run(LdRedisDubboApplication.class, args);

    }
    @PostConstruct
    public void init(){
        redisMqService.receiveMessage();
        System.out.println(12334534534534543l);
    }

    @PostConstruct
    public void init2(){
        redisMqService.sendMessage();
        System.out.println();
    }
}
